.class public Lcn/cheln/explorer/actions/sort/DBSort;
.super Ljava/lang/Object;

# interfaces
.implements Lcn/cheln/explorer/actions/sort/a;


# instance fields
.field private a:I

.field private b:I

.field private c:Ljava/lang/String;

.field private d:Ljava/lang/String;


# direct methods
.method public constructor <init>(II)V
    .locals 1

    const/4 v0, -0x1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->a:I

    iput v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->b:I

    iput p1, p0, Lcn/cheln/explorer/actions/sort/DBSort;->a:I

    iput p2, p0, Lcn/cheln/explorer/actions/sort/DBSort;->b:I

    invoke-virtual {p0, p1}, Lcn/cheln/explorer/actions/sort/DBSort;->a(I)V

    invoke-virtual {p0, p2}, Lcn/cheln/explorer/actions/sort/DBSort;->b(I)V

    return-void
.end method


# virtual methods
.method public final a()I
    .locals 1

    iget v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->a:I

    return v0
.end method

.method public final a(Ljava/lang/String;)Lcn/cheln/explorer/actions/sort/a;
    .locals 0

    return-object p0
.end method

.method public final a(I)V
    .locals 1

    packed-switch p1, :pswitch_data_0

    :goto_0
    iput p1, p0, Lcn/cheln/explorer/actions/sort/DBSort;->a:I

    return-void

    :pswitch_0
    const-string v0, "upper(sort_key)"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_1
    const-string v0, "_size"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_2
    const-string v0, "date_modified"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_3
    const-string v0, "mime_type"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_4
    const-string v0, " album "

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_5
    const-string v0, " artist "

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    :pswitch_6
    const-string v0, "upper(_display_name)"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_2
        :pswitch_1
        :pswitch_3
        :pswitch_6
        :pswitch_4
        :pswitch_5
    .end packed-switch
.end method

.method public final b()I
    .locals 1

    iget v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->b:I

    return v0
.end method

.method public final b(I)V
    .locals 1

    packed-switch p1, :pswitch_data_0

    :goto_0
    iput p1, p0, Lcn/cheln/explorer/actions/sort/DBSort;->b:I

    return-void

    :pswitch_0
    const-string v0, "asc"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->c:Ljava/lang/String;

    goto :goto_0

    :pswitch_1
    const-string v0, "desc"

    iput-object v0, p0, Lcn/cheln/explorer/actions/sort/DBSort;->c:Ljava/lang/String;

    goto :goto_0

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_0
        :pswitch_1
    .end packed-switch
.end method

.method public final c()Ljava/lang/Object;
    .locals 4

    const-string v3, " "

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcn/cheln/explorer/actions/sort/DBSort;->d:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-direct {v1, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcn/cheln/explorer/actions/sort/DBSort;->c:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
